<template>
	<view class="">
		<u-cell-group>
			<u-cell icon="integral-fill" title="类型" value="年卡"></u-cell>
			<u-cell icon="car-fill" title="车牌号" :value="car_number"></u-cell>
			<u-cell icon="rmb-circle-fill" title="支付金额" value="3000元"></u-cell>
			<view class="btn_box">
				<u-button type="primary" text="开通" @click='linkpay()'></u-button>
			</view>
		</u-cell-group>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				car_number: '0', //车牌号
				money: '3000', //开通年卡的金额
			}
		},
		onLoad(options) {
			this.car_number = options.car_number; //接受车牌号参数
		},
		methods: {
			// 跳转支付页面
			linkpay() {
				uni.navigateTo({
					url: `/pages/pay/pay?car_number=${this.car_number}&type=year&money=${this.money}`,
				});
			}
		}
	}
</script>

<style lang="scss" scoped>
	.btn_box {
		margin-top: 10px;
	}
</style>